﻿@using Web.My.Models
@model RechargeControllerModel.Index
<div class="my-main">
    <div class="ui-box  ui-box-alpha">
        <div class="ui-box-head">
            <div class="ui-box-head-border">
                <div class="ui-box-head-title">
                    充值记录</div>
                                    <span class="ui-box-head-text"></span> <a href="#" class="ui-box-head-more">去充值</a>

            </div>
        </div>
        <div class="ui-box-container">
            <div class="ui-box-content ui-box-content-special">
                <div class="row-fluid">
                    <div class="span4">
                        <p>
                            您的账户： <span class="ft-weight-bold">@(User.Identity.Name)</span></p>
                    </div>
                    <div class="span3">
                        <p>
                            可用余额：<span class="ft-green ft-weight-bold">
                                @(Model.Account.AvailableCash.ToString("N"))<small class="ft-gray ft-weight-normal">(元)</small></span></p>
                    </div>
                    <div class="span5">
                        <ul class="unstyled inline">
                            <li>提现记录 </li>
                            <li>充值退回记录 </li>
                            <li>使用遇到问题？ </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="ui-box-container-noborder">
            <div class="ui-box-content">
            </div>
        </div>
        <div class="ui-box-container-noborder">
            <table class="ui-table ui-table-inbox ui-table-alpha">
                <thead>
                    <tr>
                        <th class="span2">
                            充值信息
                        </th>
                        <th class="span2">
                            金 额(元)
                        </th>
                        <th class="span2">
                            资金渠道
                        </th>
                        <th class="span2">
                            状 态
                        </th>
                        <th class="span2">
                            备 注
                        </th>
                        <th class="span2">
                            操 作
                        </th>
                    </tr>
                </thead>
                @Model.Recharges.Each(@<tbody class="@(item.Item.Status == 1 ? "item-pending" : "item")">
                    <tr class="item-header">
                        <td colspan="2">
                            流水号：@(item.Item.Id)
                        </td>
                        <td colspan="2">
                        </td>
                        <td colspan="2">
                            充值时间：@(item.Item.CreatedOn.ToString("yyyy-MM-dd HH:mm:ss"))
                        </td>
                    </tr>
                    <tr>
                        <td class="col">
                            <div class="media">
                                <a class="pull-left" href="" target="_blank">
                                    <img data-src="holder.js/64x64" class="media-object" alt="64x64" style="width: 64px;
                                        height: 64px;" src="">
                                </a>
                                <div class="media-body">
                                    <h5 class="media-heading">
                                    </h5>
                                    枯干
                                </div>
                            </div>
                        </td>
                        <td class="col">
                            @(item.Item.Amount)
                        </td>
                        <td class="col">
                            @(item.Item.Gateway)
                        </td>
                        <td class="col">
                            @(item.Item.Status)
                        </td>
                        <td class="col">
                            @(item.Item.Extra)
                        </td>
                        <td class="ui-table-action">
                            <a href="@(WebSite.Pay)/auction/?param=@(item.Item.Id)" target="_blank">支付</a>
                        </td>
                    </tr>
                    <tr class="item-footer">
                        <td colspan="6">
                        </td>
                    </tr>
                </tbody>)
            </table>
        </div>
    </div>
</div>
